package cn.lg.soar.core.model;

import cn.lg.soar.core.annotations.DataScope;

/**
 * @author luguoxiang 469599794@qq.com
 * @Date: 2025/5/7 12:25
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public class DataScopeInfo {

    /**
     * 资源编码
     * @return
     */
    private String code;

    /**
     * 资源名称
     * @return
     */
    private String name;

    /**
     * 表别名（多表关联查询时可指定过滤的表别名）
     * @return
     */
    private String table;

    public DataScopeInfo() {
    }

    public DataScopeInfo(DataScope dataScope) {
        this.code = dataScope.code();
        this.name = dataScope.name();
        this.table = dataScope.table();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }
}
